<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ZzxjRecord extends Model
{
    use HasFactory;
    
    protected $guarded = ['id'];
    
    
    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function bgDivination()
    {
        return $this->belongsTo(Divination::class, 'dividend_id', 'id');
    }

    public function byDivination()
    {
        return $this->belongsTo(Divination::class, 'by_dividend_id', 'id');
    }
}
